@charset "utf-8";
@import "_vars/_vars";
/* 页面最小宽度 */
body {
  min-width: 1280px;
}

html {
  height: 100%;
}

body.iframe {
  min-width: auto;
  height: 100%;
}

input::-webkit-input-placeholder {
  color: #D7D7D7;
}

input:-ms-input-placeholder {
  color: #D7D7D7;
}

input:-moz-placeholder {
  color: #D7D7D7;
}

input::-moz-placeholder {
  color: #D7D7D7;
}

::-webkit-scrollbar { /*滚动条整体样式*/
  width: 15px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}

::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 5px #EDEDED;
  background: #EDEDED;
}

::-webkit-scrollbar-track { /*滚动条里面轨道*/
  -webkit-box-shadow: inset 0 0 5px rgba(10, 10, 10, 0);
  background: transparent;
}

/* 顶栏导航 begin */
.layui-header {
  height: calc(90 / 1920 * 100vw);
  max-height: 90px;
  background: url("../assets/images/title-bg.png") left top no-repeat;
  background-size: contain;
}

.layui-layout-admin .layui-body {
  top: calc(90 / 1920 * 100vw);
  bottom: calc(41 / 1920 * 100vw);
}

.layui-layout-admin .layui-header {
  background-color: #0066CC;
}

.layui-header {
  background-color: #0066CC;
}

.layui-layout-admin .layui-logo {
  width: auto;
}

.layui-logo {
  width: auto;
  height: 100%;
}

.layui-logo .x-logo {
  height: 100%;
  float: left;
}

.layui-logo .x-top-title {
  float: left;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 2px;
  width: calc(361 / 1920 * 100vw);
}

.layui-nav {
  background-color: transparent;
  height: 100%;
  .layui-nav-item {
    text-align: center;
    & > a {
      padding: 0;
      width: calc(144 / 1920 * 100vw);
      max-width: 145px;
      background: -webkit-linear-gradient(90deg, #0066CC, #2D9CE8);
      background: linear-gradient(to top, #0066CC, #2D9CE8);
      line-height: 1;
      height: 100%;
    }
    &.active {
      & > a {
        background: -webkit-linear-gradient(90deg, #E56C25, #FA9602);
        background: linear-gradient(to top, #E56C25, #FA9602);
      }
      .split-line {
        background: transparent;
      }
    }
    .split-line {
      position: absolute;
      top: 50%;
      right: 0;
      width: 1px;
      height: calc(34 / 1920 * 100vw);
      background: #3f91e2;
      transform: translateY(-50%);
    }
  }
}

/* 当前选中的样式 */
.nav-top-item {
  line-height: 1;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  color: #fff;
}

.nav-top-icon {
  display: block;
  margin: 0 auto 3%;
  width: calc(70 / 1920 * 100vw);
}

.layui-nav-bar {
  background: rgba(0, 0, 0, 0.1);
  height: 100%;
  pointer-events: none;
}

.layui-nav .layui-this:after {
  background-color: transparent;
}

.layui-layout-right {
  height: 100%;
}

.x-top-nav {
  display: flex;
  float: left;
}

.x-top-nav > li {
  float: left;
  height: 100%;
}

.x-nav-user {
  float: left;
  padding: 0 20px 0 10px;
  height: 100%;
}

.x-nav-user > li {
  float: left;
  height: 100%;
}

.x-nav-user .x-user-info {
  color: #fff;
  display: inline-flex;
  overflow: hidden;
  margin-top: calc(10 / 1920 * 100vw);
}

.x-nav-user .x-user-info > dd {
  float: left;
}

.x-nav-user .x-user-photo {
  width: calc(60 / 1920 * 100vw);
  max-height: calc(68 / 1920 * 100vw);
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.x-nav-user .x-user-photo > img {
  width: 100%;
  max-height: 100%;
}

.x-nav-user .x-user-text-box {
  margin: 0 20px 0 10px;
  position: relative;
  span {
    display: table;
  }
  .x-user-name {
    line-height: calc(42 / 1920 * 100vw);
    font-size: 18px;
    min-width: 180px;
  }
  .x-user-score {
    position: absolute;
    width: 100%;
    height: calc(37 / 1920 * 100vw);
    line-height: calc(35 / 1920 * 100vw);
    text-align: left;
    bottom: 0;
    display: inherit;
    .user-state {
      font-style: inherit;
      background: $state_color;
      padding: 1px 10px;
      border-radius: 3px;
    }
  }
}

.x-user-logout {
  width: calc(58 / 1920 * 100vw);
  height: calc(68 / 1920 * 100vw);
  line-height: calc(68 / 1920 * 100vw);
  text-align: center;
  user-select: none;
  cursor: pointer;
  margin: 0 10px;
  &:hover {
    background: #1975D1;
  }
  &:last-child {
    margin-right: 0;
  }
  i.iconfont {
    font-size: 38px;
  }
}

.nav-logout-icon {
  width: calc(37 / 1920 * 100vw);
}

/* 顶栏导航 end */

/* 主体内容布局 begin */
.layui-body-full {
  left: 0;
}

.layui-layout-admin {
  .content-limit {
    height: calc(100vh - 90 / 1920 * 100vw);
    overflow: auto;
  }
  .layui-footer-full {
    left: 0;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: #999999;
    background-color: #FAFBFC;
    height: calc(40 / 1920 * 100vw);
    line-height: calc(40 / 1920 * 100vw);
  }
  .layui-footer.footer-left {
    left: 200px;
  }
}

.layui-body-panel {
  .layui-tab-content {
    height: calc(100% - 50px);
    padding: 0;
    overflow-y: hidden;
    .layui-tab-item {
      height: 100%;
    }
  }
}

.x-layou-row-p20 {
  padding: 0 20px;
}

/* 主体内容布局 end */

/*侧边菜单栏 begin*/
.layui-side {
  position: absolute;
}

.layui-layout-admin .layui-side {
  top: calc(90 / 1920 * 100vw);
  background: #398edc;
  .layui-nav .layui-nav-item {
    & > a {
      width: calc(100% - 40px);
      max-width: initial;
      line-height: 40px;
      background: $main_color;
      color: #ffffff;
      text-align: left;
      padding-left: 40px;
      & > i.iconfont {
        position: absolute;
        margin-left: -28px;
        font-size: 22px;
      }
    }
    &.x-side-nav {
      &.layui-this {
        background-color: #46b8fe;
        a {
          background-color: transparent;
        }
        &:before {
          content: '';
          width: 5px;
          height: 40px;
          background: #ff9900;
          position: absolute;
          left: 0;
          top: 0;
          z-index: 9;
        }
      }
    }
  }
  .layui-nav-itemed {
    & > .layui-nav-child {
      background-color: rgba(57, 142, 220, 0.5) !important;
    }
    & > .layui-nav-child dd {
      text-align: left;
      padding-left: 20px;
      &:hover {
        background-color: rgba(57, 142, 220, 1);
      }
      &.layui-this {
        background-color: #46b8fe;
        a {
          background-color: transparent;
        }
        &:before {
          content: '';
          width: 5px;
          height: 40px;
          background: #ff9900;
          position: absolute;
          left: 0;
          top: 0;
          z-index: 9;
        }
      }
    }
  }
  .layui-nav-tree .layui-nav-bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
  }
}

/*侧边菜单栏 end*/

/* 面板样式重写 begin */
.layui-card {
  border: 1px solid #e5e5e5;
}

.layui-card-header {
  background: #E3F6FF;
  height: calc(48 / 1920 * 100vw);
  line-height: calc(48 / 1920 * 100vw);
  border-bottom: 1px solid #e5e5e5;
}

.layui-card-body {
  position: relative;
}

/* 面板样式重写 end */

/* 面板选项卡 重写 begin*/
.layui-tab-title > li.ban-close > i.layui-tab-close {
  display: none;
}

.layui-body-panel > .layui-tab {
  height: 100%;
  margin: 0;
}

.layui-body-panel .layui-tab-title {
  padding: 15px 10px 0px 10px;
  height: 34px;
  background: #ededed;
  border-bottom-color: #f1f1f1;
}

.layui-body-panel .layui-tab-title > .layui-tab-bar {
  margin-top: 15px;
}

.layui-body-panel .layui-tab-title > li {
  background: $main_color;
  color: #ffffff;
  margin: 0 10px 0 0;
  border: none;
  line-height: 34px;
  & > i.layui-tab-close {
    color: #ffffff;
  }
  &.layui-this {
    background: #FFFFFF;
    color: $font_color;
    line-height: 35px;
    & > i.layui-tab-close {
      color: $font_color;
      &:hover {
        color: #ffffff;
      }
    }
    &:after {
      border-radius: 0;
      border: none;
    }
  }
}

/* 面板选项卡 重写 end*/

/* 后台管理布局-内容 begin */
.layui-tab-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.row-box > .layui-row {
  margin: 0;
}

.layui-main {
  width: 1200px;
  &.x-frame2 {
    width: auto;
    margin: 0 20px;
    .view-box {
      padding: 20px 5px !important;
    }
  }
}

/* 后台管理布局-内容 end */

/* 下拉选择框 begin */
.layui-form-select dl dd.layui-this {
  background-color: #348EE1;
}

/* 下拉选择框 end */

/* 表单录入相关 begin */
.x-form-body {
  max-width: 1200px;
  width: 1200px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.layui-colla-item {
  border-color: #e5e5e5;
}

.layui-colla-title {
  padding-left: 15px;
  color: #575757;
  background-color: #f9f9f9;
  height: 43px;
  line-height: 43px;
  .layui-colla-subtitle {
    color: #c6c6c6;
  }
  .layui-colla-icon {
    right: 15px;
    left: auto;
  }
}

.layui-collapse > .layui-colla-item.colla-off {
  .layui-colla-icon {
    display: none;
  }
  .layui-colla-content {
    display: block !important;
  }
}

.layui-form-checked[lay-skin=primary] i {
  border-color: #0067d1;
  background-color: #348ee1;
}

.layui-input:hover, .layui-textarea:hover {
  border-color: #348ee1 !important;
}

.layui-form-checkbox[lay-skin=primary]:hover i {
  border-color: #348ee1;
}

.layui-input, .layui-select {
  height: 28px;
}

.layui-form-label {
  padding: 4px 0 4px 0;
  width: 110px;
  min-width: 80px;
  margin-left: -15px;
  color: #333;
  font-size: 15px;
}

.layui-input-block {
  margin-left: 104px;
}

.layui-form-radio {
  margin: 0;
}

.layui-form-item {
  margin-bottom: 5px;
}

.layui-form-item .layui-input-inline {
  margin-left: 8px;
  position: relative;
}

.layui-form-item .layui-form-checkbox[lay-skin=primary] {
  margin: 5px 0;
}

.layui-form-radio > i:hover, .layui-form-radioed > i {
  color: #348ee1;
}

.layui-form-select .layui-edge {
  border-top-color: #999;
}

.layui-btn-normal.btn-text {
  background-color: transparent;
  color: #348EE1;
}

.layui-btn-normal.btn-text .layui-icon {
  vertical-align: middle;
}

.layui-btn-warm.btn-text {
  background-color: transparent;
  color: #FFB800;
}

.layui-form-select dl {
  top: 30px;
}

.layui-form-radio > i {
  font-size: 20px;
}

.layui-btn .layui-icon {
  vertical-align: -2px;
}

.form-required {
  &:before {
    content: ' * ';
    margin-right: -5px;
    vertical-align: -webkit-baseline-middle;
    font-weight: bold;
    font-size: 24px;
    color: #fc1a1a;
    z-index: 9;
  }
}

.x-full-row {
  width: calc(100% - 20px);
  padding-left: 20px;
}

.full-add-button {
  border: 1px solid #e5e5e5;
  background: #fafafa;
  height: 43px;
  margin-top: 10px;
  text-align: center;
  line-height: 43px;
  font-size: 18px;
  color: #b8b8b8;
  user-select: none;
  cursor: pointer;
  &:hover {
    background: #F2F2F2;
    color: #666;
  }
}

.layui-form-checkbox {
  & + .checkbox-postfix {
    pointer-events: none;
    user-select: none;
    display: inline;
    margin-left: -18px;
    padding-right: 15px;
    .checkbox-text {
      width: 35px;
      margin: 0 3px;
      border: none;
      border-bottom: 1px solid #333;
      padding: 0 3px;
    }
  }
  &.layui-form-checked {
    & + .checkbox-postfix {
      .checkbox-text {
        pointer-events: auto;
      }
    }
  }
}

/* 表单录入相关 end */

/* 内嵌子页相关 begin */
.x-frame {
  background: #ffffff;
  &-head {
    height: 166px;
    border-bottom: 10px solid $iframe_background;
  }
  &-body {
    height: calc(100vh - 250px);
    padding: 15px 0 30px;
    overflow: hidden;
  }
  .layui-collapse {
    max-height: 100%;
    height: 100%;
    overflow: hidden;
    .layui-colla-item {
      height: 100%;
      &.colla-off {
        .layui-colla-title {
          cursor: auto;
        }
      }
      .layui-colla-content {
        height: calc(100% - 65px);
        overflow: auto;
        &.layui-colla-content-footer {
          height: calc(100% - 43px);
          overflow: hidden;
          padding: 0;
          .layui-form {
            height: 100%;
          }
          .view-box {
            height: calc(100% - 100px);
            overflow: auto;
            padding: 20px 15px;
          }
          .lastbtn {
            padding: 14px 15px;
            border-top: 1px solid #e6e6e6;
            text-align: right;
          }
        }
      }
    }
  }
}

.layui-btn {
  height: 30px;
  line-height: 30px;
  margin: 0 10px 5px 0 !important;
}

/* 内嵌子页相关 end */

/* 分隔线 begin */

.x-block-header {
  height: 20px;
  margin: 30px 0 20px;
  position: relative;
  .x-h-text {
    font-size: 16px;
    color: #909090;
    position: absolute;
    background: #ffffff;
    padding-right: 10px;
    padding-left: 20px;
    transform: translateY(-45%);
  }
  .x-h-line {
    display: grid;
    width: 100%;
    height: 1px;
    background: #E5E5E5;
  }
}

/* 分隔线 end */

/* 表格 begin */
.layui-table {
  thead tr {
    background-color: $head_color;
    th {
      text-align: center;
      color: #333333;
    }
  }
  tbody tr.tooltip {
    text-align: center;
  }
}

.layui-btn-normal {
  background: $main_color;
}

.upload-photo {
  width: 142px;
  height: 190px;
  overflow: hidden;
  border: $border;
  img {
    width: 100%;
    max-height: 100%;
  }
}

.upload-button-photo {
  width: 142px;
  height: 30px;
  line-height: 30px;
  margin-top: 10px;
}

.layui-colla-toolbar {
  float: right;
}

.layui-table-page {
  text-align: right;
  padding-top: 15px;
  height: 55px;
  border: 0;
  position: absolute;
  bottom: 20px;
  right: 5px;
}

.x-table-box {
  height: calc(100vh - 310px);
  min-height: 500px;
  position: relative;
  padding: 20px 15px;
}

.x-operate-btn {
  background-color: transparent;
  color: #348EE1;
  cursor: pointer;
  padding-right: 10px;
}

.layui-laypage-table.layui-laypage .layui-laypage-curr .layui-laypage-em {
  background-color: #348EE1;
  border-radius: 0;
}

.layui-table-page > div {
  height: 32px;
}

.layui-table-page .layui-laypage button, .layui-table-page .layui-laypage input,
.layui-laypage-table.layui-laypage span {
  height: 32px;
  line-height: 32px;
  margin-bottom: 0;
}

.layui-laypage-table.layui-laypage select {
  height: 24px;
}

.layui-laypage-table.layui-laypage > span.layui-laypage-curr {
  border: 1px solid #348EE1;
  height: 30px;
  line-height: 30px;
  margin-bottom: 0;
}

.layui-table-page .layui-laypage span.layui-laypage-skip {
  margin-left: 10px;
}

.layui-table-page .layui-laypage .layui-laypage-limits {
  margin-right: 20px;
}

.layui-laypage-table.layui-laypage > a {
  border: 1px solid #E5E5E5;
  height: 30px;
  line-height: 30px;
  margin-bottom: 0;
}

.layui-table, .layui-table-view {
  margin: 0;
  border: none;
}

.layui-table-box {
  border: 1px solid #e5e5e5;
}

.layui-form.layui-border-box.layui-table-view {
  position: initial;
}

.layui-table-header table thead tr {
  background-color: #e3f6ff;
}

.layui-form-checked[lay-skin=primary] i {
  border-color: #348EE1;
  background-color: #348EE1;
}

.layui-table-view .layui-form-checkbox[lay-skin=primary]:hover i {
  border-color: #348EE1 !important;
}

table tr:nth-child(odd) {
  background-color: #FFFFFF;
}

table tr:nth-child(even) {
  background-color: #FAFAFA;
}

table tr:last-child {
  border-bottom: 0;
}

.tdbtn {
  background: transparent;
  border: none;
  color: #348EE1;
  width: 76px;
  height: 35px;
  font-size: 15px;
  margin-right: 0px;
}

.tabtn:hover, .tdbtn:active {
  color: #348EE1;
}

.tip.status {
  display: block;
  border-radius: 5px;
  height: 20px;
  line-height: 20px;
  width: 60px;
  transform: translateY(25%);
}

.tip {
  /*单选题*/
  &-bg1 {
    background: #fff2e8;
    border: 1px solid #ffbb96;
    color: #fa541c;
  }
  /*多选题*/
  &-bg2 {
    background: #E6F7ff;
    border: 1px solid #91D5FF;
    color: #1890FF;
  }
  /*判断题*/
  &-bg3 {
    background: #E6FFFB;
    border: 1px solid #87e8DE;
    color: #13c2c2;
  }
}

.layui-form.layui-border-box.layui-table-view {
  position: initial;
}

.layui-table-page {
  text-align: right;
  padding-top: 15px;
  height: 55px;
  border: 0;
  position: absolute;
  bottom: 20px;
  right: 5px;
}

/* 表格 end */

/* 页面视宽小于1280px */
@media screen and (max-width: 1280px) {

  .layui-header {
    height: calc(90 / 1920 * 1280px);
  }

  .layui-layout-admin .layui-body {
    min-width: 1280px;
    top: calc(90 / 1920 * 1280px);
    bottom: calc(41 / 1920 * 1280px);
  }

  .layui-layout-admin .layui-body.layui-body-panel {
    min-width: 1080px;
  }

  .layui-layout-admin .layui-side {
    top: calc(90 / 1920 * 1280px);
  }

  .layui-layout-admin .content-limit {
    height: calc(100vh - 90 / 1920 * 1280px);
    overflow: auto;
  }

  .layui-logo .x-top-title {
    width: calc(361 / 1920 * 1280px);
  }

  .layui-nav .layui-nav-item > a {
    width: calc(144 / 1920 * 1280px);
  }

  .layui-nav .layui-nav-item .split-line {
    height: calc(34 / 1920 * 1280px);
  }

  .nav-top-icon {
    width: calc(70 / 1920 * 1280px);
  }

  .x-nav-user .x-user-info {
    margin-top: calc(10 / 1920 * 1280px);
  }

  .x-nav-user .x-user-photo {
    width: calc(60 / 1920 * 1280px);
    max-height: calc(68 / 1920 * 1280px);
  }

  .x-user-text-box .x-user-name {
    line-height: calc(22 / 1920 * 1280px);
  }

  .x-user-text-box .x-user-score {
    height: calc(35 / 1920 * 1280px);
    line-height: calc(35 / 1920 * 1280px);
  }

  .x-user-logout {
    width: calc(58 / 1920 * 1280px);
    height: calc(68 / 1920 * 1280px);
    line-height: calc(68 / 1920 * 1280px);
  }

  .layui-layout-admin .layui-footer-full {
    height: calc(40 / 1920 * 1280px);
    line-height: calc(40 / 1920 * 1280px);
  }

  .nav-logout-icon {
    width: calc(37 / 1920 * 1280px);
  }

  .layui-card-header {
    height: calc(48 / 1920 * 1280px);
    line-height: calc(48 / 1920 * 1280px);
  }

  .layui-card-body {
    padding: calc(10 / 1920 * 1280px) calc(15 / 1920 * 1280px);
    line-height: calc(24 / 1920 * 1280px);
  }

  .layui-card {
    margin-bottom: calc(15 / 1920 * 1280px);
  }
}